import request from '@/utils/request'
import { GEN_SERVER } from '@/config/baseUrl'

//查询预警列表
export function warmList(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/warm/list',
    method: 'post',
    data: data
  })
}
// 查询预警详情
export function warmDetail(id) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + '/abnormal/warm/detail',
    method: 'get',
    params: {
        id
    }
  })
}

// 导出
export function exportWarning(data) {
  return request({
    url: GEN_SERVER['auxiliary-server'] + "/abnormal/warm/exportWarmingOrder",
    method: "post",
    data,
    responseType: "blob",
  });
}

